package com.yunfeisoft.base.dao.impl;

import com.yunfeisoft.base.dao.inter.WorkflowDefineDao;
import com.yunfeisoft.base.model.WorkflowDefine;
import com.yunfeisoft.common.base.BaseDaoImpl;
import com.yunfeisoft.common.sql.builder.WhereBuilder;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * ClassName: WorkflowDefineDaoImpl
 * Description: 流程定义Dao实现
 * Author: Jackie liu
 * Date: 2020-01-03
 */
@Repository
public class WorkflowDefineDaoImpl extends BaseDaoImpl<WorkflowDefine, String> implements WorkflowDefineDao {

    @Override
    public Page<WorkflowDefine> queryPage(Map<String, Object> params) {
        WhereBuilder wb = new WhereBuilder();
        if (params != null) {
            initPageParam(wb, params);
        }
        return queryPage(wb);
    }

    @Override
    public List<WorkflowDefine> queryList(Map<String, Object> params) {
        WhereBuilder wb = new WhereBuilder();
        if (params != null) {
            initPageParam(wb, params);
        }
        return query(wb);
    }
}